package com.example.androidtest.listview;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;

import com.example.androidtest.R;

public class IntentActivity extends AppCompatActivity {
    private TextView textView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_intent);
        textView = findViewById(R.id.textView);
        Intent intent = getIntent();
        String text = intent.getStringExtra("intent");
        textView.setText(text);
    }
}
